package com.slwu.factory.easy;

public class Main {
    public static void main(String[] args) {
        Product productA = ProductFactory.createProduct(ProductTypeEnum.A);
        productA.setName("A01");
        productA.show();
        Product productB = ProductFactory.createProduct(ProductTypeEnum.B);
        productB.setName("B01");
        productB.show();
    }
}
